home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
GameKit
/
Makefiles
/
lib
/
Makefile.all
next >
Wrap
Makefile
|
1995-06-12
|
1KB
|
54 lines
#
# NeXT common include file for Internal Makefiles
# Copyright 1987, 1991, NeXT Computer, Inc.
#
# Maintained by Doug Wiebe.
#
# This Makefile has the targets used to build libraries.
#
# making "name" causes the library to be built
$(NAME): all
all:: $(SYMROOT) $(OBJROOT)
# makes lib$(NAME).a
$(PRODUCT): ofiles $(SYMROOT) $(OBJROOT)
$(AR) $(ARFLAGS) $(SYMROOT)/$(PRODUCT) $(OFILES)
ranlib $(RANLIBFLAGS) $(SYMROOT)/$(PRODUCT)
optimized:: $(SYMROOT) $(OBJROOT)
@echo '************* $(NAME) Optimized library *************'
@$(MAKE) $(OPT_LIB) \
"PRODUCT = $(OPT_LIB)" \
"OFILE_DIR = $(OBJROOT)/$(OPT_OBJ)" \
"SYMROOT = $(SYMROOT)" \
"OBJROOT = $(OBJROOT)" \
"CFLAGS = $(OPTCFLAGS)"
debug:: $(SYMROOT) $(OBJROOT)
@echo '*************** $(NAME) Debug library ***************'
@$(MAKE) $(DEBUG_LIB) \
"PRODUCT = $(DEBUG_LIB)" \
"OFILE_DIR = $(OBJROOT)/$(DEBUG_OBJ)" \
"SYMROOT = $(SYMROOT)" \
"OBJROOT = $(OBJROOT)" \
"CFLAGS = $(DEBUGCFLAGS)"
profile:: $(SYMROOT) $(OBJROOT)
@echo '************** $(NAME) Profile library **************'
@@$(MAKE) $(PROFILE_LIB) \
"PRODUCT = $(PROFILE_LIB)" \
"OFILE_DIR = $(OBJROOT)/$(PROFILE_OBJ)" \
"SYMROOT = $(SYMROOT)" \
"OBJROOT = $(OBJROOT)" \
"CFLAGS = $(PROFCFLAGS)"
# makes sure these directories exists
$(SYMROOT) $(OBJROOT)::
@if [ ! -d $@ ] ; then \
echo mkdirs $(MKDIRSFLAGS) $@ ; \
mkdirs $(MKDIRSFLAGS) $@ ; \
fi